<head>
    <?php $this->load->view('load_view');?>
</head>
<?php
/*
 * 页面名称：active.php
 * 面向用户：学生
 * 页面介绍：本页内容对应学生导航的“活动作业”，显示了当前学期所有未过期的作业的列表
 * 
 */
$list=array(	array(
    'Visual Enlightenment for the Web',
    'The Zen of CSS Design',
    'Mr.A',
    'February 17, 2005',
    'February 30, 2005',
    '3',
    'index.php?page=handin'
    ),
    array(
    'jQuery从入门到精通',
    'javascript',
    'Ms.B',
    'February 12, 2005',
    'February 17, 2005',
    '1',
    'a.cab'
    ),
    array(
    'Differences with HTML 4 ',
    'The Zen of CSS Design',
    'Mr.A',
    'February 17, 2005',
    'February 30, 2005',
    '3',
    'c.bmp'
    ),
    array(
    'Element and attribute names must be in lower case ',
    'javascript',
    'Ms.B',
    'February 12, 2005',
    'February 17, 2005',
    '1',
    '#'
    ),
    array(
    'Strictly Conforming Documents',
    'PHP',
    'Mr.A',
    'February 17, 2005',
    'February 30, 2005',
    '3',
    'index.php?page=handin'
    ),
    array(
    '语言和组件参考概述',
    'actionscript',
    'Ms.B',
    'February 12, 2005',
    'February 17, 2005',
    '1',
    '#'
    ),

    )
    ?>

<div class="col-wrap handin-wrap">
    <!--start col-->
    <div class="col handin">

        <div class="wrap-title">
            <p class="page-title">正在进行的作业</p>
        </div>

        <p class="desc bg">

            页面提示：这里显示的是所有正在进行的作业，点击列标题以进行排序，点击作业名称下的链接即可查看详细信息
        </p>

        <!--start activate-wrap-->
        <div class="list activate-wrap">
            <table cellpadding="1" class="sortTable" id="sortTable">

                <thead>
                    <tr>
                        <th><p>课业名称</p></th>
                        <th><p>所属课程</p></th>
                        <th><p>任教老师</p></th>
                        <th><p>下发日期</p></th>
                        <th><p>截止日期</p></th>
                        <th><p>已交记录</p></th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    for($i=0;$i<count($list);$i++) {
                        ?>
                    <tr class="toggle">
                        <td><a class="type" href="<?php echo $list[$i][6]; ?>"><?php echo $list[$i][0]; ?></a></td>
                        <td><?php echo $list[$i][1]; ?></td>
                        <td><?php echo $list[$i][2]; ?></td>
                        <td><?php echo $list[$i][3]; ?></td>
                        <td><?php echo $list[$i][4]; ?></td>
                        <td><?php echo $list[$i][5]; ?></td>
                    </tr>
                    <?php
                    }
                    ?>
                </tbody>
            </table>

        </div>
        <!--end activate-wrap-->
    </div>
    <!--end col-->
</div>
<!--end col-wrap-->
<script>
    $(window.parent.document).find("ul.nav li a").removeClass("then");
    $(window.parent.document).find("a#active").attr("class","then");
</script>